{% extends 'base.html' %}
{% block main %}

			<nav class="navbar navbar-default" role="navigation">
				<div class="navbar-header">
					 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button> <a class="navbar-brand" href="#"><span class="glyphicon glyphicon-list-alt"></span>&nbsp;注册</a>
				</div>

			</nav>
			<form role="form" action="/logreg/" method="post">
				<div class="form-group">
					 <label for="exampleInputEmail1">请输入你的邮箱:</label><input name="username" type="email" class="form-control" id="exampleInputEmail1" placeholder="例如:123456@163.com" />
                    <span style="color: red;font-size: 10px">{{ error_username }}</span>
				</div>
				<div class="form-group">
					 <label for="exampleInputPassword1">请输入你的密码:</label><input name="password" type="password" class="form-control" id="exampleInputPassword1" placeholder="例如:123.com" />
                    <span style="color: red;font-size: 10px">{{ error_password }}</span>
				</div>
                <div class="form-group">
					 <label for="exampleInputPassword1">请再次确认你的密码:</label><input name="password_2" type="password" class="form-control" id="exampleInputPassword1" placeholder="例如:123.com" />
                    <span style="color: red;font-size: 10px">{{ error_password }}</span>
				</div>

				<div class="checkbox">
					 <label><input name="contract" value="yes" type="checkbox" />我同意<<美食汇条约规定>></label>
				    <span style="color: red;font-size: 10px">{{ error_contract }}</span>
                </div>
                <button type="submit" class="btn btn-warning">确认注册</button>
             &nbsp;
                <a href="/logreg/log/"><button type="button" class="btn btn-default">去登录</button></a>
			</form>

{% endblock main %}